package com.cictec.middleware;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ComponentScan.Filter;

import com.cictec.middleware.commons.mybatis.dao.MybatisDaoUtil;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@ComponentScan(excludeFilters={@Filter(type=FilterType.ASSIGNABLE_TYPE,value={MybatisDaoUtil.class})})
public class MiddlewareGPSCaculateApplication {

	public static Logger logger = LoggerFactory.getLogger(MiddlewareGPSCaculateApplication.class);
	
	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(MiddlewareGPSCaculateApplication.class, args);
		
//		BusLineService busLineService = (BusLineService) context.getBean("busLineService");
//		busLineService.loadBusLine("", "0ac99ebeb30f4224a12f");
		logger.debug("【middleware-gps-caculate】里程计算服务启动成功");
	}
}
